//
//  CZStatusNormalCell.swift
//  czbkiosweibo5
//
//  Created by zhangping on 15/10/19.
//  Copyright © 2015年 zhangping. All rights reserved.
//

import UIKit

/// 原创微博
class CZStatusNormalCell: CZStatusCell {
    
    override func prepareUI() {
        super.prepareUI()
        
        // 配图视图
        // 在内容标签的左下位置,距离右边为8,宽高为0, 0
        let cons = pictureView.ff_AlignVertical(type: ff_AlignType.BottomLeft, referView: contentLabel, size: CGSize(width: 0, height: 0), offset: CGPoint(x: 0, y: statusCellMargin))
        // 获取配图视图的宽度约束
        pictureViewWidthCons = pictureView.ff_Constraint(cons, attribute: NSLayoutAttribute.Width)

        // 获取配图视图的高度约束
        pictureViewHeightCons = pictureView.ff_Constraint(cons, attribute: NSLayoutAttribute.Height)
    }

}
